package com.smart.autohome.pipeline;


import java.util.List;

import com.geccocrawler.gecco.annotation.PipelineName;
import com.geccocrawler.gecco.pipeline.Pipeline;
import com.smart.autohome.bean.ArticleDetail;
import com.smart.autohome.bean.ArticleList;

@PipelineName("mongoPipeline")
public class MongoPipeline implements Pipeline<ArticleList>{

	@Override
	public void process(ArticleList list) {
		
		System.out.println("@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@");
		List<ArticleDetail> details = list.getDetailList();
		for(ArticleDetail detail:details){
			System.out.println("title = " + detail.getTitle());
		}
		
	}

}
